from django import forms as forms

def choice_blog():
	blog_list = set()
	blog_list.add( (2, "Onet"))
	blog_list.add( (1, "Onet")) 
	return blog_list

def choice_action():
  action_list = set()
  action_list.add( (1, "content"))
  action_list.add( (2, "blogs list"))
  action_list.add( (3, "comments list"))
  return action_list

def parser_type():
	pass


class CrawlerForm(forms.Form):
  address = forms.CharField(required = 'False', max_length = 100, widget = forms.TextInput(attrs={'class':'LogText', 'size' : 70 } ) )
  action = forms.ChoiceField(required = True,  choices = choice_action() )
  comment = forms.CharField(required = False, max_length = 100, widget = forms.Textarea() )
  blog = forms.ChoiceField( required = 'True', choices = choice_blog() )
